package com.bai.qf2201.service.Impl;

import com.bai.qf2201.mapper.cityMapper;
import com.bai.qf2201.po.City;
import com.bai.qf2201.service.cityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class cityServiceImpl implements cityService {
    @Resource
    private cityMapper cityMapper;
    @Override
    public List<City> findById(int pid) {
        List<City> byId = cityMapper.findById(pid);
        return byId;
    }

    @Override
    public City findById2(int id) {
        City c = cityMapper.findById2(id);
        return c;
    }
}
